export namespace user{
    export const name:string='tom'
    type yz=[string,number]
    type lh=number|string
    type cs = yz & lh
}
class Person {
    name:string
    sex:string
    constructor(name:string,sex:string){
        this.name=name
        this.sex=sex
    }
    private eat(){
        console.log('eat')
    }
    get value():string{
        return this.name
    }
    set age(a:number){
        this.age=a
    }
    public main():void{

    }
    protected sayHi(){

    }
}
interface Animal{
    leg:number;
    tail:number;
}
class Cat extends Person implements Animal{
    leg=1
    tail=2
    bak(){
        console.log('fork')
    }
}
let cat1 = new Cat('cat','m')
console.log('cat1',cat1)